package cn.edu.cqie.enums;

public enum RespToAppEnum {

	// 基础类型返回值000-100
	SUCCESS("001", "000001", "成功"),

	ERROR("000", "000000", "失败"),

	BADREQUEST("003", "000003", "请求参数非法"),

	BADTEST("004", "000004", "测试非法"),

	TOKEN_EXPIRED("005", "000005", "当前登陆状态已过期，请重新登录"),

	TOKEN_ERROR("006", "000006", "登陆状态异常，请重新登录"),

	SIGNATURE_ERROR("007", "000007", "签名失败"),

	// 业务类101-200
	LOGIN_ERROR("101", "000101", "调用微信登录接口登陆失败"),

	LOGIN_ERROR_FOR_REMOTE_NULL("102", "000102", "调用微信登录接口返回结果为空"),

	USER_NOT_FOUND("103", "000103", "用户不存在"),

	FILE_READ_OR_WRITE_FAILED("104", "000104", "文件读或写异常"),

	FILE_NOT_EXIST("105", "000105", "文件不存在"),
	
	PRODUCTID_NOT_EXIST("106", "000106", "账号ID不存在");

	private String code; // 本地
	private String distCode; // 远程
	private String message; // 内容

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getDistCode() {
		return distCode;
	}

	public void setDistCode(String distCode) {
		this.distCode = distCode;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	private RespToAppEnum(String code, String distCode, String message) {
		this.code = code;
		this.distCode = distCode;
		this.message = message;
	}

}
